import request from '@/utils/request'

export function specialistAdd(data) {
  return request({
    url: '/specialist/add',
    method: 'post',
    data: data
  })
}

export function specialistDelete(id) {
  return request({
    url: '/specialist/delete/' + id,
    method: 'delete'
  })
}

export function specialistGetById(id) {
  return request({
    url: '/specialist/' + id,
    method: 'get'
  })
}

export function specialistPage(searchObj, pageNum, pageSize) {
  return request({
    url: '/specialist/page',
    method: 'post',
    data: searchObj,
    params: { pageNum, pageSize }
  })
}

export function specialistUpdate(data) {
  return request({
    url: '/specialist/update',
    method: 'put',
    data: data
  })
}
